import { Module } from '@nestjs/common'
import { AuthModule } from './auth/auth.module'
import { PrismaModule } from './prisma/prisma.module'
import { ArticleModule } from './article/article.module'
import { ConfigModule } from '@nestjs/config'
import { UploadModule } from './upload/upload.module'
import { CategoryModule } from './category/category.module'
import { CaptchaModule } from './captcha/captcha.module'
import { CacheModule } from '@nestjs/cache-manager'
import { EmailModule } from './email/email.module'
import { WallpaperModule } from './wallpaper/wallpaper.module';

@Module({
  imports: [
    AuthModule,
    PrismaModule,
    ArticleModule,
    ConfigModule.forRoot({
      isGlobal: true,
    }),
    UploadModule,
    CategoryModule,
    CaptchaModule,
    CacheModule.register({
      ttl: 100000,
      isGlobal: true,
    }),
    EmailModule,
    WallpaperModule,
  ],
})
export class AppModule {}
